
<!DOCTYPE html>
<html>
    <head>
        <meta charset="utf-8">
        <meta name="viewport" content="initial-scale=1, maximum-scale=1, user-scalable=no">
        <meta name="format-detection" content="telephone=no">
        <title>挺赞商户</title>
        <link rel="stylesheet" href="__PUBLIC__/business/css/reset.css" >
        	<link rel="stylesheet" href="__PUBLIC__/business/css/main.css" >
    </head>
    
    <body>
	<header>
		<i id="iconlogo">挺赞洗衣</i><i id="refresh">刷新</i>
	</header>
	
<section class="account">
		<img style="margin: 30px auto;" src="__PUBLIC__/business/images/tingzan.jpg" width="120">
		<form id="bbForm">
		<ul>
			<li>
				<div style="margin-bottom:14px;">
					<input placeholder="店主或店员账号" type="text" name="username" id="username">
				</div>
				<div>
					<input placeholder="请输入密码" type="password" name="password" id="password">
				</div>
			</li>
		</ul>
		<div id="submit" class="button org"><a>开始服务</a><b></b></div>
		</form>
	</section>
	<div class="clear"></div>
	<footer class="account">CopyRight © &nbsp; 2015-2016 TingZan.com</footer>
	<script src="__PUBLIC__/business/js/jquery.1.7.2.min.js"></script>
	<script src="__PUBLIC__/business/js/normal.js"></script>
	<script>
		$(function(){
			//登录
			$('#submit').on('click',function(){
				 var tourl="{:U('Business/Login/login')}";
       			 var data=$('#bbForm').serialize();
       			$.post(tourl,data,function(data){
				    if(data.status!=1){
				    		 if(data.status==2){
				    		 	Msg('账户或者密码不正确！',2);
				    		 }else{
				    		 	Msg('您已绑定过，不能重复操作！',2);
				    		 }
				    }else{
				    		Msg('登录成功！',1);
				    		window.location.href="http://wx.tingzan88.com/business/order/lists";
				    }
				});
			});
		});
	</script>
    </body>
</html>